import { WeaTools } from 'ecCom';

//微搜智能指令列表
export const getList = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getList', 'POST', params);
};

//微搜智能指令高级搜索条件列表
export const getCondition = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getCondition', 'POST', params);
};

//微搜智能指令添加修改数据展示
export const getFields = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getFields', 'POST', params);
};

//微搜智能指令-添加
export const addRobot = params => {
  return WeaTools.callApi('/api/fullsearch/robot/addRobot', 'POST', params);
};

//微搜智能指令-修改
export const editRobot = params => {
  return WeaTools.callApi('/api/fullsearch/robot/editRobot', 'POST', params);
};

//微搜智能指令-删除
export const deleteRobot = params => {
  return WeaTools.callApi('/api/fullsearch/robot/deleteRobot', 'POST', params);
};

//微搜智能指令-启用/禁用
export const openRobot = params => {
  return WeaTools.callApi('/api/fullsearch/robot/openRobot', 'POST', params);
};

//微搜智能指令-创建索引
export const createRobotIndex = params => {
  return WeaTools.callApi('/api/fullsearch/robot/createRobotIndex', 'POST', params);
};